ostree.git
8 years agoci: Enable -Werror=unused-result with -Wp,-D_FORTIFY_SOURCE=2
Colin Walters [Tue, 28 Mar 2017 17:29:38 +0000 (13:29 -0400)]
ci: Enable -Werror=unused-result with -Wp,-D_FORTIFY_SOURCE=2

(Also rename the other CI contexts to be more consistent)

We pass this right now. I just noticed an instance of this in bwrap, and I think
we should be trying to match the RPM build baseline.

Closes: #765
Approved by: jlebon

8 years agosysroot/unlock: Ensure overlay label on /usr is `usr_t`
Daniel J Walsh [Mon, 27 Mar 2017 21:31:06 +0000 (17:31 -0400)]
sysroot/unlock: Ensure overlay label on /usr is `usr_t`

Otherwise, we get `tmp_t` by default which can break a lot of things; we noticed
this with `atomic scan`.

Closes: https://github.com/ostreedev/ostree/issues/762
Closes: #763
Approved by: rhatdan

8 years agopull: Also skip partial commits for deltas if no summary file
Colin Walters [Wed, 15 Mar 2017 16:13:58 +0000 (12:13 -0400)]
pull: Also skip partial commits for deltas if no summary file

I was playing around in a FAH vagrant box, and hit:

```
Receiving delta parts: 3/4 453.2 kB/s 1.8 MB/145.8 MB
error: opcode set-read-source: No such file object b6e54ba3471b9c116ce6b9bfbf9e55fec60d35cfdb9ae5ae1ee219af02a591b7
```

This is because this host version doesn't yet have
https://github.com/ostreedev/ostree/pull/710
which incidentally fixed this for the case where the OS vendor is using
summary files.

Some organizations may not be using summary files - at least we still try to
support that case. So let's copy the logic very recently added in that commit to
handle the legacy case too.

No new tests since this is a nice-to-have - we really do
expect people to be using summary files now.

Closes: #739
Approved by: jlebon

8 years agoDefine TARGET_PREFIX to use with grub2 deployment
Anton Gerasimov [Mon, 27 Mar 2017 14:05:46 +0000 (16:05 +0200)]
Define TARGET_PREFIX to use with grub2 deployment

Closes: #760
Approved by: cgwalters

8 years agoAdd basic tests for bare-user-only repo modes
Alexander Larsson [Sun, 26 Mar 2017 09:03:47 +0000 (11:03 +0200)]
Add basic tests for bare-user-only repo modes

This is somewhat complicated by such repos only properly supporting
some subset of file metadata (uid/gid 0, etc). We fix this by
always commiting with filters that make it work.

Closes: #750
Approved by: cgwalters

8 years agocommit: Add --canonical-permissions argument
Alexander Larsson [Sun, 26 Mar 2017 09:01:25 +0000 (11:01 +0200)]
commit: Add --canonical-permissions argument

This adds to file permission masks the same bitmask that will
be applied to file objects in bare-user* repos. This will be
needed in the testsuite to ensure that the things we commit
will be expressable in bare-user-only repos.

Closes: #750
Approved by: cgwalters

8 years agoAdd bare-user-only repo mode
Alexander Larsson [Wed, 22 Mar 2017 10:59:18 +0000 (11:59 +0100)]
Add bare-user-only repo mode

This mode is similar to bare-user, but does not store the permission,
ownership (uid/gid) and xattrs in an xattr on the file objects in the
repo. Additionally it stores symlinks as symlinks rather than as
regular files+xattrs, like the bare mode. The later is needed because
we can't store the is-symlink in the xattr.

This means that some metadata is lost, such as the uid. When reading a
repo like this we always report uid, gid as 0, and no xattrs, so
unless this is true in the commit the resulting repository will
not fsck correctly.

However, it the main usecase of the repository is to check out with
--user-mode, then no information is lost, and the repository can
work on filesystems without xattrs (such as tmpfs).

Closes: #750
Approved by: cgwalters

8 years agoAdd _ostree_repo_mode_is_bare helper
Alexander Larsson [Wed, 22 Mar 2017 10:52:41 +0000 (11:52 +0100)]
Add _ostree_repo_mode_is_bare helper

This cleans up some existing code, but it also allows us to later
add new bare modes.

Closes: #750
Approved by: cgwalters

8 years agorepo+tests: Add [core]disable-xattrs=true, use it on overlayfs
Colin Walters [Fri, 24 Mar 2017 14:35:59 +0000 (10:35 -0400)]
repo+tests: Add [core]disable-xattrs=true, use it on overlayfs

There are a lot of things suboptimal about this approach, but
on the other hand we need to get our CI back up and running.

The basic approach is to - in the test suite, detect if we're on overlayfs. If
so, set a flag in the repo, which gets picked up by a few strategic places in
the core to turn on "ignore xattrs".

I also had to add a variant of this for the sysroot work.

The core problem here is while overlayfs will let us read and
see the SELinux labels, it won't let us write them.

Down the line, we should improve this so that we can selectively ignore e.g.
`security.*` attributes but not `user.*` say.

Closes: https://github.com/ostreedev/ostree/issues/758
Closes: #759
Approved by: jlebon

8 years agocommit: Prefix error with target object name on failure to write
Colin Walters [Fri, 24 Mar 2017 13:16:06 +0000 (09:16 -0400)]
commit: Prefix error with target object name on failure to write

Helpful to debug things later.

Closes: #759
Approved by: jlebon

8 years agobuild: Dist ostree-sepolicy-private.h
Colin Walters [Thu, 23 Mar 2017 18:29:59 +0000 (14:29 -0400)]
build: Dist ostree-sepolicy-private.h

Should fix the Travis builds which actually generate a legacy tarball via
Automake.

Closes: #755
Approved by: jlebon

8 years agocore: Convert some functions to new code style
Colin Walters [Thu, 23 Mar 2017 12:59:33 +0000 (08:59 -0400)]
core: Convert some functions to new code style

Not doing the whole file since it's big, these are some simple ones to keep
momentum up.

Closes: #753
Approved by: jlebon

8 years agosysroot: Add ostree_sysroot_write_deployments_with_options()
Colin Walters [Mon, 20 Mar 2017 14:19:04 +0000 (10:19 -0400)]
sysroot: Add ostree_sysroot_write_deployments_with_options()

More sophisticated users of libostree like rpm-ostree need control over things
like the system repository. Previously we introduced a "no cleanup" flag to
`ostree_sysroot_simple_write_deployment()`, but that's a high level API that
does filtering on its own.

Since rpm-ostree needs more control, let's expose the bare essentials of the
"sysroot commit" operation with an extensible options structure, where one of
the options is whether or not to do post-transaction repository operations.

Closes: #745
Approved by: jlebon

8 years agorepo/refs: Convert to new code style
Colin Walters [Wed, 22 Mar 2017 18:10:53 +0000 (14:10 -0400)]
repo/refs: Convert to new code style

I happened to be reading this one recently for a reason I forget,
and it's a relatively easy conversion.

Also one not conflicting with any outstanding patches.

Closes: #752
Approved by: jlebon

8 years agocfg.mk: Add a syntax check for a redundant : in glnx_throw
Colin Walters [Thu, 23 Mar 2017 16:07:06 +0000 (12:07 -0400)]
cfg.mk: Add a syntax check for a redundant : in glnx_throw

This is going to be an easy bug to make when porting.

Example spotted by jlebon in https://github.com/ostreedev/ostree/pull/752/files/435c2dc35c06218b8fe5b4ede0fe4f6cda535b45#diff-dbc2359685171239c4708f2a8f6aa921

Closes: #752
Approved by: jlebon

8 years agosepolicy: Add better private API for setfscreatecon
Colin Walters [Tue, 21 Mar 2017 00:51:22 +0000 (20:51 -0400)]
sepolicy: Add better private API for setfscreatecon

Use `g_auto()` more sanely with a struct implmenting the "is initialized"
pattern.  This is way less ugly for callers, and fixes bugs like
us calling `setfscreatecon()` even if an error occurred beforehand.

Also fold in the logic for "NULL or not loaded" sepolicy into the setup rather
than requiring callers to inline it.

Prep for more users of this function.

Closes: #746
Approved by: jlebon

8 years agosepolicy: Add ostree_sepolicy_new_at()
Colin Walters [Sat, 18 Mar 2017 13:49:59 +0000 (09:49 -0400)]
sepolicy: Add ostree_sepolicy_new_at()

I'm porting other code away from `GFile`, and while we don't use this
internally, it will let us do so at a later date. I'm averse to changing the
code right now as we don't have good CI coverage of this.

Closes: #746
Approved by: jlebon

8 years agoBump libglnx, port a few callers to new error API
Colin Walters [Tue, 21 Mar 2017 15:27:19 +0000 (11:27 -0400)]
Bump libglnx, port a few callers to new error API

Testing out the waters here. I think we should roll this into any future code
cleanup reworking we do.

Closes: #747
Approved by: jlebon

8 years agobuild: Various fixes for openssl build
Colin Walters [Tue, 21 Mar 2017 19:07:41 +0000 (15:07 -0400)]
build: Various fixes for openssl build

This actually worked before because `pkg-config --cflags openssl`
is empty, and the linker was satisfying `-lssl -lcrypto` from our
indirect dependencies.

Also, in fact we *currently* just want `pkg-config libcrypto` i.e.
`-lcrypto`, since we aren't actually using openssl to speak TLS.

This doesn't actually matter on Fedora at least since they're both in the
`openssl-libs` package, but they are separate for a reason.

Closes: #749
Approved by: jlebon

8 years agobuild: Quiet automake warning for bupsplit
Colin Walters [Tue, 21 Mar 2017 19:14:06 +0000 (15:14 -0400)]
build: Quiet automake warning for bupsplit

Use `_SRCS` and not `_SOURCES`, the latter of which makes automake assume
there's something for it to do.

Closes: #749
Approved by: jlebon

8 years agodiff: Add ostree_diff_dirs_with_options(), expose via cmdline
Erik Larsson [Wed, 8 Feb 2017 20:59:38 +0000 (21:59 +0100)]
diff: Add ostree_diff_dirs_with_options(), expose via cmdline

The first options are owner_uid/owner_gid, which makes it possible to use diff
on local files where --owner-uid/gid have been passed to commit.

Closes: #740
Approved by: cgwalters

8 years agosysroot: Prep refactoring of cleanup logic
Colin Walters [Mon, 20 Mar 2017 14:35:40 +0000 (10:35 -0400)]
sysroot: Prep refactoring of cleanup logic

For future work I'm going to tweak how we handle cleanup, and
the private cleanup flags didn't really end up being used - we
only specify "prune repo or not".  So fold that into a boolean for now.

The sysroot deploy logic then has a single "do_postclean" boolean, which is all
I want to expose as public API.

Closes: #744
Approved by: jlebon

8 years agosysroot/deploy: Some cleanup to decl-after-stmt/return FALSE style
Colin Walters [Sat, 18 Mar 2017 15:51:44 +0000 (11:51 -0400)]
sysroot/deploy: Some cleanup to decl-after-stmt/return FALSE style

And fd-relative. I also introduced some helpers here which I'll use later in
more invasive patches.

Closes: #742
Approved by: jlebon

8 years agocore: Support building with OpenSSL for checksums
Colin Walters [Mon, 13 Mar 2017 18:41:14 +0000 (14:41 -0400)]
core: Support building with OpenSSL for checksums

Add an OpenSSL backend to the checksum input stream, which is where we do a lot
of checksumming (object commit, static deltas).

The raw OpenSSL performance is
[approximately double](https://gist.github.com/cgwalters/169349fd1c06fd4fb4d3a7ce33303222) on
my laptop; not only does OpenSSL have e.g. hand-tuned x86_64 assembly, the
current implementation uses the
[Intel SHA extensions](https://en.wikipedia.org/wiki/Intel_SHA_extensions).

Another reason to do this is I was idly thinking about adding
[Curve25519](https://en.wikipedia.org/wiki/Curve25519) signatures (like e.g.
Alpine does) instead of/in addition to GPG.  The rationale for that is
that GPG is pretty heavyweight, both in code footprint and the simple
fact that EC keys are way smaller.

I didn't benchmark ostree with this; we have bigger performance problems
really like the fact we just malloc way too much.  But, it's a step
in the right direction I think in combination with the libcurl work
where we're linking to openssl anyways.

Closes: #738
Approved by: jlebon

8 years agolib: Add a private copy of checksum-instream
Colin Walters [Mon, 13 Mar 2017 19:40:24 +0000 (15:40 -0400)]
lib: Add a private copy of checksum-instream

The current `OstreeChecksumInputStream` is public due to a historical
mistake.  I'd like to add an OpenSSL checksum backend, but that's
harder without breaking this API.

Let's ignore it and create a new private version, so it's easier to do the
GLib/OpenSSL abstraction in one place.

Closes: #738
Approved by: jlebon

8 years agolib: Squash most of the gtk-doc warnings for missing parameters
Colin Walters [Mon, 13 Mar 2017 01:11:41 +0000 (21:11 -0400)]
lib: Squash most of the gtk-doc warnings for missing parameters

This isn't all of them, just trying to make a dent.

Closes: #734
Approved by: jlebon

8 years agolib: Exclude soup header from introspection
Colin Walters [Mon, 13 Mar 2017 01:04:51 +0000 (21:04 -0400)]
lib: Exclude soup header from introspection

We should fix this more reliably by defining a separate variable for
introspection (and gtk-doc) sources at some point, but this does the trick for
now.

Avoids a spam of warnings, and it's definitely not public API.

Closes: #734
Approved by: jlebon

8 years agopull: Squash a `-Wmaybe-uninitialized` warning
Colin Walters [Mon, 13 Mar 2017 00:56:28 +0000 (20:56 -0400)]
pull: Squash a `-Wmaybe-uninitialized` warning

Tempting to make it fatal...but we'd have to basically init all
of our variables I think.

Closes: #734
Approved by: jlebon

8 years agobuiltin/show: Convert to direct return/decl-after-stmt style
Colin Walters [Mon, 13 Mar 2017 00:53:28 +0000 (20:53 -0400)]
builtin/show: Convert to direct return/decl-after-stmt style

I just happened to be reading this code; still testing
the waters for the new code style.  If we decide to do more
of this it's likely worth trying out a [Coccinelle](http://coccinelle.lip6.fr/)
patch or something.

Closes: #733
Approved by: jlebon

8 years agocore: Add runtime ostree_check_version()
Colin Walters [Mon, 13 Mar 2017 13:45:51 +0000 (09:45 -0400)]
core: Add runtime ostree_check_version()

[Previously](https://github.com/ostreedev/ostree/pull/728) we added compile-time
checking for versions, but there are use cases for runtime checking as well,
because in a number of API calls we use `GVariant` as an API extension
mechanism.

Closes: #735
Approved by: jlebon

8 years agoDisable "ostree trivial-httpd" by default now
Colin Walters [Tue, 7 Mar 2017 22:32:50 +0000 (17:32 -0500)]
Disable "ostree trivial-httpd" by default now

This goes farther along the path of deprecating it; consumers should
have been ported at this point.  Though probably a lot of people
may still use `rpm-ostree-toolbox`.

Closes: #723
Approved by: jlebon

8 years agolibostree: add versioning macros
Georges Basile Stavracas Neto [Fri, 10 Mar 2017 17:33:52 +0000 (14:33 -0300)]
libostree: add versioning macros

OSTree currently provides no way to inspect the versioning
information at run time, being only available at compile
time through pkg-config.

This is a problem for e.g. Flatpak, that needs to check
whether the 'update-frequency' option is available. Checking
at compile time isn't great since it's not looking for new
symbols, but only if an optional feature is present.

This commit, then, adds a new header that is generated
at compile time, exposing OSTree's versioning information.

Closes: #728
Approved by: cgwalters

8 years agoFix includes if built against musl
André Klitzing [Fri, 10 Mar 2017 21:01:21 +0000 (22:01 +0100)]
Fix includes if built against musl

LOCK_* is defined in sys/file.h

http://git.musl-libc.org/cgit/musl/tree/include/sys/file.h

Closes: #730
Approved by: cgwalters

8 years agoAvoid unnecessary includes
André Klitzing [Fri, 10 Mar 2017 21:24:57 +0000 (22:24 +0100)]
Avoid unnecessary includes

"return" will do the same here. Also that style is used at the
end of the function.

Closes: #732
Approved by: jlebon

8 years agoRelease 2017.3
Colin Walters [Thu, 9 Mar 2017 02:47:00 +0000 (21:47 -0500)]
Release 2017.3

It's been almost a month, I think the current git is working well and
not too risky.  We have some new API additions which I think the
various consumers of them are going to want.

Closes: #726
Approved by: jlebon

8 years agorepo/checkout: Convert a few functions to new "stmt-decl/FALSE" style
Colin Walters [Mon, 6 Mar 2017 20:27:22 +0000 (15:27 -0500)]
repo/checkout: Convert a few functions to new "stmt-decl/FALSE" style

Just testing the waters a bit more.  Yeah, definitely nicer.

Closes: #722
Approved by: jlebon

8 years agoostree: allow setting update frequency from command line
Georges Basile Stavracas Neto [Wed, 8 Mar 2017 17:19:29 +0000 (14:19 -0300)]
ostree: allow setting update frequency from command line

After commit 80b3edc64731a5f0 introducing the option to set
a custom timeout, adapt the ostree program to be able to update
that.

Closes: #725
Approved by: jlebon

8 years agorepo-pull: add option to set the async update frequency
Georges Basile Stavracas Neto [Wed, 8 Mar 2017 17:14:15 +0000 (14:14 -0300)]
repo-pull: add option to set the async update frequency

When using Flatpak with GNOME Software, it is important to
show the progress of the download and install as close as
possible to the real progress.

However, OSTree forces the frequency to call the async
progress callback to 1 second, which causes an unpleasant
effect on the UI, specially when the download size is so
small that everything happens in less than 1 second.

Fix that by adding making OSTree read a custom 'update-frequency'
option and set the timeout source timeout to that. If
no custom frequency is passed, we assume the default 1
second timeout, maintaining the current behavior.

Closes: #725
Approved by: jlebon

8 years agorepo/checkout: fix 32-bit builds
Christian Hergert [Wed, 8 Mar 2017 06:48:51 +0000 (22:48 -0800)]
repo/checkout: fix 32-bit builds

__dev_t is 64-bit even on 32-bit Linux systems such as i386.

Closes: #724
Approved by: cgwalters

9 years agocheckout: Support a "pure addition" mode
Colin Walters [Thu, 2 Mar 2017 03:42:07 +0000 (22:42 -0500)]
checkout: Support a "pure addition" mode

I plan to use this for `rpm-ostree livefs`.
https://github.com/projectatomic/rpm-ostree/issues/639

Closes: #714
Approved by: jlebon

9 years agorepo/checkout: Verify early if src/destination are on same device
Colin Walters [Mon, 6 Mar 2017 19:51:14 +0000 (14:51 -0500)]
repo/checkout: Verify early if src/destination are on same device

At least in all Linux kernels up to today, one can never `link()` across
devices, so we might as well verify that up front. This will help for a future
patch to add a new type of union-add checkout, since Linux checks for `EEXIST`
before `EXDEV`.

Closes: #714
Approved by: jlebon

9 years agoAllow and start using C99 declaration-after-statement
Colin Walters [Fri, 3 Mar 2017 17:10:46 +0000 (12:10 -0500)]
Allow and start using C99 declaration-after-statement

I've seen code in a few places that I think on balance is definitely better this
way.  Some of our functions have huge variable declaration sections.
This change includes one small example where we could start using declarations
after statements.

A concern I had was - how does this interact with `__attribute__((cleanup))` and
early returns? I tested it, and AFAICS the behavior is what you'd expect - the
cleanup function isn't called if its variable isn't reachable.

Closes: #718
Approved by: jlebon

9 years agolibostree: Allow compression level to be set for archive-z2 stream
Philip Withnall [Mon, 6 Mar 2017 17:48:36 +0000 (17:48 +0000)]
libostree: Allow compression level to be set for archive-z2 stream

Add a ostree_raw_file_to_archive_z2_stream_with_options() variant of
ostree_raw_file_to_archive_z2_stream(), to allow a compression-level
option to be passed in and passed through to zlib.

This is useful when building archive-z2 files on the fly for
transmission over a non-bandwidth-limited channel, such as a local
network. In this case, CPU time is more valuable than bandwidth, so we
want a low compression level.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #721
Approved by: cgwalters

9 years agofetcher/curl: Fix leaks caught by ASAN
Colin Walters [Sat, 4 Mar 2017 15:11:15 +0000 (10:11 -0500)]
fetcher/curl: Fix leaks caught by ASAN

I had to rebuild `glib` with `-fsanitize=address` in order to get a stack trace
to finally get this one.  However, *installing* that glib "system wide"
in my container breaks everything (including `rpm-ostree`, `dnf`, `pkg-config` etc.)
that wasn't built with ASAN.

So my test scenario right now is to extract the libs and do e.g.:
```
make && env LD_LIBRARY_PATH=$HOME/src/distgit/fedora/glib2/asan-libs make check TESTS=tests/test-basic.sh
```

Closes: #719
Approved by: jlebon

9 years agobuild: Fix disabling --enable-man if xsltproc is not available
Philip Withnall [Mon, 6 Mar 2017 12:19:28 +0000 (12:19 +0000)]
build: Fix disabling --enable-man if xsltproc is not available

If --enable-man=maybe (the default), and xsltproc is not available, the
configuration code would check for it, correctly set enable_man=no, then
incorrectly overwrite that with enable_man=yes, which would result in
later trying to execute $(XSLTPROC) when it’s empty.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #720
Approved by: cgwalters

9 years agopull: Use all available commits for delta sources
Colin Walters [Fri, 24 Feb 2017 02:49:21 +0000 (21:49 -0500)]
pull: Use all available commits for delta sources

The previous logic for static deltas was to use as a FROM
revision the current branch tip.  However, we want
to support deltas between branches in an automatic
fashion.

If a summary file is available, we already have an
enumerated list of deltas - so the logic introduced
here is to search it, and find the newest commit
we have locally that matches the TO revision target.

This builds on some thoughts from
https://github.com/ostreedev/ostree/pull/151#issuecomment-232390232

Closes: https://github.com/ostreedev/ostree/pull/151
Closes: #710
Approved by: giuseppe

9 years agogrub2: Use "linux16" only on x86/x86_64
Colin Walters [Fri, 3 Mar 2017 02:30:10 +0000 (21:30 -0500)]
grub2: Use "linux16" only on x86/x86_64

Got a report that a Fedora Atomic Host built for ppc64le didn't work with the
`linux16`, it needed `linux`. See the comments for more links.

Closes: #716
Approved by: vathpela

9 years agolibglnx: bump for -Wmaybe-uninitialized fix
Jonathan Lebon [Thu, 2 Mar 2017 19:50:24 +0000 (14:50 -0500)]
libglnx: bump for -Wmaybe-uninitialized fix

https://github.com/GNOME/libglnx/pull/37

Closes: #715
Approved by: cgwalters

9 years agopull: don't use static deltas if archive repo
Jonathan Lebon [Thu, 2 Mar 2017 17:11:17 +0000 (12:11 -0500)]
pull: don't use static deltas if archive repo

In https://github.com/ostreedev/ostree/pull/408, we disabled the use of
static deltas when mirroring. Later,
https://github.com/ostreedev/ostree/pull/506 loosened this up again so
that we could use static deltas when mirroring into bare{-user} repos.

However, the issue which originally spurrred #408 is even more generic
than that: we want to avoid static deltas for any archive repo, not just
when doing a mirror pull. This patch tightens this up, and also
relocates the decision code to make it easier to read.

Closes: #715
Approved by: cgwalters

9 years agodeltas: Expose the filename parameter
Gatis Paeglis [Thu, 24 Nov 2016 14:59:36 +0000 (15:59 +0100)]
deltas: Expose the filename parameter

The C API (ostree_repo_static_delta_generate) knows what to do
with it, but this parameter was never exposed via command line
tool.

Closes: https://github.com/ostreedev/ostree/issues/695
Closes: #703
Approved by: jlebon

9 years agogrub2: Use g_spawn_sync() rather than GSubprocess to avoid SIGCHLD
Colin Walters [Wed, 22 Feb 2017 16:33:38 +0000 (11:33 -0500)]
grub2: Use g_spawn_sync() rather than GSubprocess to avoid SIGCHLD

Due to the async nature of `GSubprocess` it grabs `SIGCHLD` which
affects other software which might be using libostree, such as
QtOTA.

Closes: https://github.com/ostreedev/ostree/issues/696
Closes: #702
Approved by: jlebon

9 years agoupgrade: Add support for --pull-only and --deploy-only
Colin Walters [Thu, 5 Jan 2017 16:29:41 +0000 (11:29 -0500)]
upgrade: Add support for --pull-only and --deploy-only

This makes it easier to script downloading updates in the background,
and only do deployments just before rebooting.

Partially addresses https://github.com/ostreedev/ostree/issues/640

Closes: #642
Approved by: jlebon

9 years agofetcher: Log failures into journal
Colin Walters [Thu, 23 Feb 2017 14:24:58 +0000 (09:24 -0500)]
fetcher: Log failures into journal

Particularly when HTTP requests fail, I really want a lot more information.
We could theoretically stuff it into the `GError` message field, but
that gets ugly *fast*.

Using the systemd journal allows us to log things in a structured fashion.
Right now e.g. rpm-ostree won't be aware of this additional information,
but I think we could teach it to be down the line.

In the short term, users can learn to find it from `systemctl status rpm-ostreed`
or `journalctl -b -r -u rpm-ostreed`, etc.

One thing I'd like to do next is log successful fetches of e.g. commit objects
as well with more information about the originating server (things like the
final URL if we were redirected, did we use TLS pinning, what was the negotiated
TLS version+cipher, etc).

Closes: #708
Approved by: jlebon

9 years agodeploy/libmount: Fix build with old util-linux 2.23 (CentOS7)
Colin Walters [Fri, 24 Feb 2017 15:18:27 +0000 (10:18 -0500)]
deploy/libmount: Fix build with old util-linux 2.23 (CentOS7)

https://github.com/ostreedev/ostree/pull/705 broke the build
on CentOS 7 which only has util-linux 2.23.

When I was thinking about this, I realized that there must really be a way to
make this safe even for older versions. Looking at that version of util-linux,
all we need to do is invert the order of frees so we `mnt_free_table()` *before*
`mnt_free_cache()`, like util-linux does:

https://github.com/karelzak/util-linux/blob/stable/v2.23/sys-utils/eject.c#L1131

We still use the `_unref()` versions if available.  I also fixed
the ordering there too for double plus redundant safety.

Closes: #712
Approved by: jlebon

9 years agotree-wide: Squash noncritical compiler warnings
Colin Walters [Fri, 24 Feb 2017 14:33:20 +0000 (09:33 -0500)]
tree-wide: Squash noncritical compiler warnings

Should fix everything from
<https://kojipkgs.fedoraproject.org//packages/ostree/2017.2/3.fc25/data/logs/x86_64/build.log>

Anything that uses autocleanups should *always* be initialized directly I think,
even if a few lines down we directly assign, since this way it's more robust
against refactoring.

And the `freopen()` warnings are right - IMO we should *always* check return
values.

Closes: #711
Approved by: jlebon

9 years agoman/repo-config: Document mirrorlist
Colin Walters [Thu, 23 Feb 2017 23:01:28 +0000 (18:01 -0500)]
man/repo-config: Document mirrorlist

We should get more strict about docs. Add some text about `contenturl` and
mirrorlists.

Closes: #709
Approved by: jlebon

9 years agodeploy: Correctly use libmount unref() calls rather than free()
Colin Walters [Thu, 23 Feb 2017 14:40:17 +0000 (09:40 -0500)]
deploy: Correctly use libmount unref() calls rather than free()

We saw a random ostree SEGV start popping up in our CI environment:
https://github.com/projectatomic/rpm-ostree/pull/641#issuecomment-281870424

Looking at this code more and comparing it to what util-linux does, I noticed we
had a write-after-free, since `mnt_unref_table()` will invoke
`mnt_unref_cache()` on its cache, and that function does:

```
if (cache) {
cache->rfcount--;
```

unconditionally.

Fix this by using `unref()`.

Closes: #705
Approved by: jlebon

9 years agomain: Make ostree --version output YAML (and add gitrev)
Colin Walters [Fri, 17 Feb 2017 15:22:43 +0000 (10:22 -0500)]
main: Make ostree --version output YAML (and add gitrev)

I learned today that `docker version` does this and I really like
the idea.  While we have the patient open, also add the gitrev
with code taken from https://github.com/projectatomic/rpm-ostree/pull/584

Closes: #691
Approved by: giuseppe

9 years agobuild: Add --with-smack, use it to reset contexts for writing objects
Colin Walters [Tue, 21 Feb 2017 18:58:40 +0000 (13:58 -0500)]
build: Add --with-smack, use it to reset contexts for writing objects

At some point we'll want to follow what systemd is doing and add
better support for smack, along the lines of `OstreeSePolicy`.  However,
short term this patch fixes AGL which uses Smack.

See: https://jira.automotivelinux.org/browse/SPEC-386
See: https://github.com/ostreedev/ostree/pull/698

Closes: #698
Approved by: OYTIS

9 years agoci: Hard error on all -fsanitize=undefined warnings
Colin Walters [Fri, 17 Feb 2017 21:59:21 +0000 (16:59 -0500)]
ci: Hard error on all -fsanitize=undefined warnings

I saw in a recent test log a ton of spam
```
libglnx/glnx-dirfd.c:253:3: runtime error: null pointer passed as argument 1, which is declared to never be null
```
which actually turned out to be libglnx getting reverted.  But
let's be sure now we actually bomb out quickly on UBSAN warnings
in general.

Closes: #693
Approved by: jlebon

9 years agolibglnx: Re-bump to master due to accidental reversion
Colin Walters [Fri, 17 Feb 2017 21:58:26 +0000 (16:58 -0500)]
libglnx: Re-bump to master due to accidental reversion

Commit a1805d6101eb8efeaa72459c22d88ed08ff7a065 reverted
this unintentionally.

We should have some CI check that requires a commit message has
something like "libglnx bump" or something?

Closes: #693
Approved by: jlebon

9 years agoREADME.md: Add more/clean up links to consuming projects
Colin Walters [Tue, 21 Feb 2017 16:20:52 +0000 (11:20 -0500)]
README.md: Add more/clean up links to consuming projects

Add meta-updater and QtOTA, and delete OpenEmbedded since it's implied by the
first two. Merge rpm-ostree + Atomic Host since they're close. Clarify
gnome-continuous a bit.

Closes: #700
Approved by: jlebon

9 years agolibtest: Re-enable quiet mode for building fs tree
Colin Walters [Tue, 21 Feb 2017 15:15:03 +0000 (10:15 -0500)]
libtest: Re-enable quiet mode for building fs tree

I think I commented this out while debugging something, and forgot to re-enable
it. Reading the log files should be a better again after this.

Closes: #699
Approved by: giuseppe

9 years agolib: Ensure an error is set in ensure_unlinked() if errno != ENOENT
Colin Walters [Sat, 18 Feb 2017 15:15:39 +0000 (10:15 -0500)]
lib: Ensure an error is set in ensure_unlinked() if errno != ENOENT

We hit this with:
```
27411 unlink("/boot/efi/EFI/fedora/grub.cfg.new") = -1 EROFS (Read-only file system)
```
from the grub2 code.

https://github.com/projectatomic/rpm-ostree/issues/633

Closes: #694
Approved by: giuseppe

9 years agoci: Install PyYAML
Colin Walters [Fri, 17 Feb 2017 20:59:20 +0000 (15:59 -0500)]
ci: Install PyYAML

We'll use it for https://github.com/ostreedev/ostree/pull/691

Closes: #692
Approved by: jlebon

9 years agopull: Fold together deltapart+fallback count for display
Colin Walters [Fri, 10 Feb 2017 23:09:16 +0000 (18:09 -0500)]
pull: Fold together deltapart+fallback count for display

It's just simpler, and I'm not sure people are going to care
much about the difference by default.

We already folded in the fallback sizes into the download totals, so folding in
the count makes things consistent; previously you could see e.g.
`3/3 parts, 100MB/150MB` and be confused.

Closes: #678
Approved by: giuseppe

9 years agopull: Explicitly error out if metadata objects are fallbacks
Colin Walters [Fri, 10 Feb 2017 22:35:23 +0000 (17:35 -0500)]
pull: Explicitly error out if metadata objects are fallbacks

I don't know why I added support for this; it makes no sense really. If we have
large metadata objects something has gone badly wrong.

The delta compiler has always only processed fallbacks for regular
content files.

Dropping support in the fetcher for this will simplify later handling of
fallback progress accounting.

Closes: #678
Approved by: giuseppe

9 years agorepo: Fix static delta progress display
Colin Walters [Fri, 10 Feb 2017 19:29:54 +0000 (14:29 -0500)]
repo: Fix static delta progress display

There were a few bugs here.

- We need to keep track of the size of the delta parts we've already processed,
  in order to make progress reliable at all in the face of interruptions.  Add
  a new `fetched-delta-part-size` async progress variable for this.
- The total before disregarded what we'd already downloaded, which was confusing.
  Now, a progress percentage is `fetched/total`.
- Correctly handle "unknown bytes/sec" in the progress display.

However, to be fully correct we need to show the fallback objects too. That
would require tracking in the pull code when we fetch an object as a fallback
versus "normally". This would be simpler really if we could assume in a run we
were *only* processing a delta, but currently we don't do that.

Related: https://github.com/ostreedev/ostree/issues/475

Closes: #678
Approved by: giuseppe

9 years agodelta-show: Don't dump whole superblock, do show fallback checksums
Colin Walters [Fri, 10 Feb 2017 21:10:20 +0000 (16:10 -0500)]
delta-show: Don't dump whole superblock, do show fallback checksums

Doing `g_variant_print (superblock)` is unreadable and not very useful,
since we show the checksums as byte arrays.

However, do show the checksums for fallback objects. This makes it easier to see
which objects are fallbacks (and inspect why).

Closes: #678
Approved by: giuseppe

9 years agodeltas: Don't put unreadable *from* objects in fallback
Colin Walters [Fri, 10 Feb 2017 21:05:17 +0000 (16:05 -0500)]
deltas: Don't put unreadable *from* objects in fallback

In https://github.com/ostreedev/ostree/pull/634 we introduced
a subtle regression - the unreadable object was added to the *new*
reachable objects, when it shouldn't have been.  Because it
was a *from* object, clients already had it.

This became more obvious now that I'm working on fixing delta
progress - I noticed my deltas were always starting out with 40MB
fetched, which turned out to be a non-world-readable initramfs object.

This code should simply *skip* the unreadable object, and the delta processing
below properly iterates over "new objects", so we'll pick it up from there.

Closes: #678
Approved by: giuseppe

9 years agocontrib/golang: rm directory
Giuseppe Scrivano [Thu, 16 Feb 2017 19:52:09 +0000 (20:52 +0100)]
contrib/golang: rm directory

rm -r the directory since we are keeping the Go bindings separately
under https://github.com/ostreedev/ostree-go

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Closes: #690
Approved by: cgwalters

9 years agoRelease 2017.2
Colin Walters [Tue, 14 Feb 2017 15:14:25 +0000 (10:14 -0500)]
Release 2017.2

We should get a release out to try to keep with at least a once-a-month cadence.
This one has some exciting stuff like libcurl and Rust, and various bugfixes.
Also importantly I want to cut this *before* we land some other bigger stuff, so
rpm-ostree can start using the reload_config API etc.

Closes: #685
Approved by: jlebon

9 years agorofiles-fuse: Support write/read_buf()
Alexander Larsson [Tue, 14 Feb 2017 13:36:28 +0000 (14:36 +0100)]
rofiles-fuse: Support write/read_buf()

These allow us to avoid copying a lot of data around
in userspace. Instead we splice the data directly from
the fd to the destination fd.

Closes: #684
Approved by: cgwalters

9 years agobuild: Remove .PHONY for Rust shared library
Colin Walters [Sat, 11 Feb 2017 20:33:57 +0000 (15:33 -0500)]
build: Remove .PHONY for Rust shared library

I have no idea why I made the lib `.PHONY` originally; it's clearly wrong, and I
noticed because when I was doing `sudo make install`, we were doing a rebuild,
which in turn triggered other things to be built, and they'd be owned by root.

Closes: #682
Approved by: jlebon

9 years agocommit: Support -F/--body-file, like git
Colin Walters [Sat, 11 Feb 2017 16:24:15 +0000 (11:24 -0500)]
commit: Support -F/--body-file, like git

This is more convenient to script for projects which haven't
yet made the leap to using the API.

Closes: https://github.com/ostreedev/ostree/issues/674
Closes: #681
Approved by: jlebon

9 years agolibglnx: Bump
Colin Walters [Fri, 10 Feb 2017 22:18:31 +0000 (17:18 -0500)]
libglnx: Bump

Pulls in the xattr fixes and the tempname perf improvement.

Closes: #680
Approved by: jlebon

9 years agoadmin-switch: Don't segfault if there's no remote
Anton Gerasimov [Mon, 13 Feb 2017 16:34:18 +0000 (17:34 +0100)]
admin-switch: Don't segfault if there's no remote

Switching between local branches should be supported too.

Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
Closes: #683
Approved by: cgwalters

9 years agoostree-repo: Clarify error behaviour of remote option getters
Philip Withnall [Thu, 9 Feb 2017 19:49:06 +0000 (19:49 +0000)]
ostree-repo: Clarify error behaviour of remote option getters

Clarify the documentation for functions like
ostree_repo_get_remote_boolean_option(), stating what out_value will be
set to on error.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #676
Approved by: cgwalters

9 years agolibostree: added empty ot_cleanup_{read,write}_archive macros.
Krisztian Litkey [Fri, 10 Feb 2017 12:14:27 +0000 (14:14 +0200)]
libostree: added empty ot_cleanup_{read,write}_archive macros.

Added empty macros for ot_cleanup_{read,write}_archive to fix
errors when compiling without libarchive.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Closes: #677
Approved by: cgwalters

9 years agofetcher queue: also throttle on outstanding writes
Jonathan Lebon [Thu, 9 Feb 2017 03:06:05 +0000 (22:06 -0500)]
fetcher queue: also throttle on outstanding writes

When fetching over a fast enough connection, we can be receiving files
faster than we write them. This can then lead to EMFILE when we have
enough files open. This was made very easy to notice with the upcoming
libcurl backend, which makes use of pipelining.

Closes: #675
Approved by: cgwalters

9 years agolibcurl backend
Colin Walters [Thu, 8 Dec 2016 02:02:30 +0000 (21:02 -0500)]
libcurl backend

For rpm-ostree, we already link to libcurl indirectly via librepo, and
only having one HTTP library in process makes sense.

Further, libcurl is (I think) more popular in the embedded space.  It
also supports HTTP/2.0 today, which is a *very* nice to have for OSTree.

This seems to be working fairly well for me in my local testing, but it's
obviously brand new nontrivial code, so it's going to need some soak time.

The ugliest part of this is having to vendor in the soup-url code. With
Oxidation we could follow the path of Firefox and use the
[Servo URL parser](https://github.com/servo/rust-url).  Having to redo
cookie parsing also sucked, and that would also be a good oxidation target.

But that's for the future.

Closes: #641
Approved by: jlebon

9 years agopull: Show Estimating if we're scanning too
Colin Walters [Thu, 19 Jan 2017 10:49:23 +0000 (05:49 -0500)]
pull: Show Estimating if we're scanning too

The libcurl backend does all the work in the main thread/loop, which
seems to starve the idle scanning worker more.  With the libcurl
backend, we're a lot more likely to have at least one outstanding
metadata request.

But it can more easily transiently happen with libcurl that all of our current
fetches are content. To be accurate here, just show Estimating if we're scanning
too.

Closes: #654
Approved by: jlebon

9 years agofetcher: Drop the libsoup queue
Colin Walters [Thu, 19 Jan 2017 10:34:20 +0000 (05:34 -0500)]
fetcher: Drop the libsoup queue

Now that we have queuing in the higher level pull logic, we don't
need to do this anymore.

It's tempting to keep it since the code diff is so small (without
completely rewriting things), but dropping it here will make
it easier to see when things go wrong at a higher level.

Note that I kept an assertion.

Closes: #654
Approved by: jlebon

9 years agopull: Add queuing into the higher level logic
Colin Walters [Thu, 19 Jan 2017 02:57:07 +0000 (21:57 -0500)]
pull: Add queuing into the higher level logic

Working on the libcurl backend, I didn't want to reimplement another queue. I
think the queue logic is really better done at the high level, since the fetcher
knows how we want to prioritize metadata over content, etc.

Adding another queue here is duplication, but things will look nicer when we can
actually delete the libsoup one in the next commit.

Closes: #654
Approved by: jlebon

9 years agorepo: Add archive/zlib-level option, drop default compression to 6
Colin Walters [Tue, 7 Feb 2017 13:59:32 +0000 (08:59 -0500)]
repo: Add archive/zlib-level option, drop default compression to 6

The gzip default is 6.  When I was writing this code, I chose 9 under
the assumption that for long-term archival, the extra compression was
worth it.

Turns out level 9 is really, really not worth it.  Here's run at level 9
compressing the current Fedora Atomic Host into archive:

```
ostree --repo=repo pull-local repo-build fedora-atomic/25/x86_64/docker-host
real    2m38.115s
user    2m31.210s
sys     0m3.114s
617M    repo
```

And here's the new default level of 6:

```
ostree --repo=repo pull-local repo-build fedora-atomic/25/x86_64/docker-host
real    0m53.712s
user    0m43.727s
sys     0m3.601s
619M    repo
619M    total
```

As you can see, we run almost *three times* faster, and we take up *less
than one percent* more space.

Conclusion: Using level 9 is dumb.  And here's a run at compression level 1:

```
ostree --repo=repo pull-local repo-build fedora-atomic/25/x86_64/docker-host
real    0m24.073s
user    0m17.574s
sys     0m2.636s
643M    repo
643M    total
```

I would argue actually many people would prefer even this for "devel" repos.
For production repos, you want static deltas anyways.  (However, perhaps
we should support a model where generating a delta involves re-compressing
fallback objects with a bit stronger compression level).

Anyways, let's make everyone's life better and switch the default to 6.

Closes: #671
Approved by: jlebon

9 years agorust: Support `make dist` -> cargo vendor
Colin Walters [Sat, 4 Feb 2017 16:29:20 +0000 (11:29 -0500)]
rust: Support `make dist` -> cargo vendor

What we do here basically is set things up in a `dist-hook` so that our Rust
sources are vendored at `dist` time. This gives us a single tarball still, and
ideally should be transparent to downstream builders, as long as they have the
`cargo/rust` toolchain.

Closes: #669
Approved by: jlebon

9 years agolib: Add ostree_repo_reload_config()
Colin Walters [Mon, 30 Jan 2017 06:43:37 +0000 (07:43 +0100)]
lib: Add ostree_repo_reload_config()

For a long time we've cached the remote configs in the repo, which
mostly makes sense for the `repo/config` file, but less sense
for `/etc/ostree/remotes.d`, because we want to support admins
interactively editing them.

One can delete the repo instance and create a new one, but that's a bit ugly.
Let's introduce an API for this so rpm-ostree can reload remotes after
admins/scripts edit them in `/etc`.  We also might as well reload
any other entries in the config.

Structurually now, `ostree_repo_open()` deals with file descriptors, and then
calls `ostree_repo_reload_config()`. Except for the uncompressed cache, which is
the only thing that deals with FDs that can be configured. But we want to delete
that anyways.

No tests, since...we don't have a daemon in this codebase, don't want to shave
that yak just today.

Closes: #662
Approved by: jlebon

9 years agopackaging/: Delete
Colin Walters [Sun, 5 Feb 2017 13:25:47 +0000 (08:25 -0500)]
packaging/: Delete

This is obsolete for a few reasons. The spec file is out of date (mostly the
%files, but also the BRs), and further down the line we'll need to use `make
dist` so we pick up vendored Rust sources. So the "git archive" approach won't
work for much longer anyways.

This came up in https://mail.gnome.org/archives/ostree-list/2017-February/msg00005.html

Basically, anyone who wants to build packages should look at the upstream
dist-git - until such time as e.g. Fedora learns to support pulling spec files
from upstream.

Closes: #670
Approved by: giuseppe

9 years agotrusted.gpg.d: keep in the same location
Jonathan Lebon [Fri, 3 Feb 2017 19:10:27 +0000 (14:10 -0500)]
trusted.gpg.d: keep in the same location

With the package rename from ostree to libostree, the trusted.gpg.d/ dir
changed install location from /usr/share/ostree to /usr/share/libostree.
Let's keep the same dir to remain compatible with existing installations
that may already have keys there.

Closes: #668
Approved by: cgwalters

9 years agodoc: fix typo in CONTRIBUTING
Chen Fan [Fri, 3 Feb 2017 07:03:06 +0000 (15:03 +0800)]
doc: fix typo in CONTRIBUTING

Signed-off-by: Chen Fan <fan.chen@easystack.cn>
Closes: #667
Approved by: cgwalters

9 years agooxidation: Add implementation of bupsplit in Rust
Colin Walters [Wed, 25 Jan 2017 02:43:53 +0000 (21:43 -0500)]
oxidation: Add implementation of bupsplit in Rust

This is an initial drop of "oxidation", or adding implementation
of components in Rust.  The bupsplit code is a good target - no
dependencies, just computation.

Translation into Rust had a few twists -

 - The C code relies a lot on overflowing unsigned ints, and
   also on the C promotion rules for e.g. `uint8_t -> int32_t`
 - There were some odd loops that I introduced bugs in while
   translating...in particular, the function always returns `len`,
   but I mistakenly translated to `len+1`, resulting in an OOB
   read on the C side, which was hard to debug.

On the plus side, an off-by-one array indexing in the Rust code paniced nicely.

In practice, we'll need a lot more build infrastructure to make this work, such
as using `cargo vendor` when producing build artifacts for example. Also, Cargo
is yet another thing we need to cache.

Where do we go with this? Well, I think we should merge this, it's not a lot of
code. We can just have it be an alternative CI target. Should we do a lot more
right now? Probably not immediately, but I find the medium/long term prospects
pretty exciting!

Closes: #656
Approved by: jlebon

9 years agoRename to libOSTree
Colin Walters [Mon, 30 Jan 2017 04:41:59 +0000 (05:41 +0100)]
Rename to libOSTree

There are many motivating factors. The biggest is simply that at a practical
level, the command line is not sufficient to build a real system. The docs say
that it's a demo for the library. Let's make that more obvious, so people don't
try to use `ostree admin upgrade` for their real systems, and also don't use
e.g. `ostree commit` on the command line outside of test suites/quick hacking.

This change will also help clarify the role of rpm-ostree, which we will likely
be renamed to "nts". Then use of the term "ostree" will become much clearer. And
similarly for other people writing upgraders, they can say they use libostree.

I didn't try to change all of the docs and code at once, because it's going to
lead to conflicts.

The next big steps are:

  - Rename the github repo (github will inject a redirect)
  - Look at supporting a build where we don't do `ostree admin`, or at least
    it's only built for tests. We may want to split it off as a separate binary
    or so? That way people with their own upgraders don't need to ship it.

Closes: #659
Approved by: jlebon

9 years agotests: Add setup for more realistic repo, change pull-many to use
Colin Walters [Sun, 29 Jan 2017 19:15:17 +0000 (14:15 -0500)]
tests: Add setup for more realistic repo, change pull-many to use

As OSTree has evolved over time, the tests grew with it.  We
didn't start out with static deltas or a summary file, and the
tests reflect this.

What I really want to do is change more of the pull tests, from
corruption/proxying/mirroring etc. to use this more realistic
repo rather than the tiny one the other test creates.

We start by using some of the code from `test-pull-many.sh`, and change that
test to use `--disable-static-deltas` for pull, since the point of that test is
to *not* test deltas.

Still TODO is investigate changing other tests to use this.

Closes: #658
Approved by: jlebon

9 years agolib: Move the bupsplit selftest into our test framework
Colin Walters [Wed, 25 Jan 2017 14:25:27 +0000 (09:25 -0500)]
lib: Move the bupsplit selftest into our test framework

We weren't running it before. Also I switched it to use GLib. Preparation for
some oxidation work (having an implementation of bupsplit in Rust).

I exported another function to do the raw rollsum operation which is what this
test suite uses.

Closes: #655
Approved by: jlebon

9 years agotravis: Disable tests (but keep builds) on flaky distros
Colin Walters [Mon, 30 Jan 2017 10:21:43 +0000 (11:21 +0100)]
travis: Disable tests (but keep builds) on flaky distros

I went through the Travis history a bit, and these seem to be
the flaky ones.  The ubuntu one is likely no libsoup patches.
The other one @smcv has partially traced to a GPGME race condition
or something like that.

For the libsoup one; as I say in comments, once we have libcurl, I'd like to
enable that mostly everywhere, which should (hopefully) be more reliable.

Closes: #664
Approved by: cgwalters

9 years agolib: Prefix GPG errors with the checksum
Colin Walters [Mon, 30 Jan 2017 09:55:22 +0000 (10:55 +0100)]
lib: Prefix GPG errors with the checksum

I was working on https://bugzilla.redhat.com/show_bug.cgi?id=1393545
and it was annoying that I couldn't know what the new (unsigned)
commit has was until verification succeeded.  I could pull it
manually without GPG, but then it'd be sitting in the repo.

Now:

```
Updating from: fedora-atomic:fedora-atomic/25/x86_64/docker-host

Receiving metadata objects: 0/(estimating) -/s 0 bytes
error: Commit 2fb89decd2cb5c3bd73983f0a7b35c7437f23e3aaa91698fab952bb224e46af5: GPG verification enabled, but no signatures found (use gpg-verify=false in remote config to disable)
```

Closes: #663
Approved by: giuseppe

9 years agolib: Adjust comments in symbols section for last release
Colin Walters [Mon, 30 Jan 2017 06:44:20 +0000 (07:44 +0100)]
lib: Adjust comments in symbols section for last release

2017.1 was released, move its section above the line.

Closes: #661
Approved by: cgwalters

9 years agolibostree: Don't distribute generated enumtypes in tarballs
Simon McVittie [Fri, 27 Jan 2017 09:06:39 +0000 (09:06 +0000)]
libostree: Don't distribute generated enumtypes in tarballs

They are built at "make" time and cleaned up by "make clean", so there
is no need to distribute them.

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #665
Approved by: cgwalters

9 years agodocs: update pulp_ostree link
Jonathan Lebon [Mon, 23 Jan 2017 00:06:54 +0000 (19:06 -0500)]
docs: update pulp_ostree link

Closes: #657
Approved by: cgwalters

9 years agotrivial-httpd: trivial option help string fixes
Jonathan Lebon [Sat, 14 Jan 2017 19:22:47 +0000 (14:22 -0500)]
trivial-httpd: trivial option help string fixes

Add an arg description for -P, otherwise it's not immediately obvious
that it takes an argument.

Mention that - is supported for --log-file.

Closes: #657
Approved by: cgwalters